
<script>

    let op_format=function(_val){
        if(_val.indexOf('save')!=-1){
            return '<font color="red">'+_val+'</font>';
        }
        else{
            return _val;
        }
    }
    var option = {
        colModel : [
            {label: '时间', name: 'time',width: 180, editable: false, sortable:true,hidden:false,resize:false,fixed:false,search:false,formatter:cosjs.jqgrid.timeFormat},
            {label: '用户', name: 'name',width: 100, editable: false, sortable:false,hidden:false,resize:false,fixed:false,search:false},
            {label: 'Ip', name: 'ip',width: 100, editable: false, sortable:false,hidden:false,resize:false,fixed:false,search:false},
            {label: '操作', name: 'path',width: 200, formatter:op_format,editable: false, sortable:false,hidden:false,resize:false,fixed:false,search:false},
            {label: '表单', name: 'post',width: 400, editable: false, sortable:false,hidden:false,resize:false,fixed:false,search:false},
            {label: '参数', name: 'params',width: 200, editable: false, sortable:false,hidden:false,resize:false,fixed:false,search:false},
        ],
        rowNum:50,
        rowList:[50,100,150,200],
    }
    $(document).ready(function () {
        cosjs_create_jqgrid(option);
        $(grid_selector).jqGrid('navGrid',{
            search:false
        })
    });
</script>
 